﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace UnitOfWork.Example1
{
    public interface IUnitOfWork<T> where T : class
    {
        void MarkDirty<T>(T entity);
        void MarkNew<T>(T entity);
        void MarkDeleted<T>(T entity);
        void Commit();
        void Rollback();
    }
}
